Use unicode-data instead of downloading external files Replace external links with...
authorPeter Colberg <peter@colberg.org>
Mon, 12 Jan 2026 14:57:02 +0000 (15:57 +0100)
committerMatthias Geiger <werdahias@debian.org>
Thu, 23 Apr 2026 07:48:10 +0000 (09:48 +0200)
Forwarded: not-needed
Last-Update: 2025-09-01

Gbp-Pq: Name use-unicode-data.patch

data/Makefile

index 03f834896b72c6a50c2b0050ebf7ee39ed00f1e0..cbf4431d0c4944975b8148848d83ef6458cf32f5 100644 (file)
@@ -24,37 +24,37 @@ utf8proc_data.c.new: data_generator.jl $(RAWDATA)
 UNICODE_VERSION=17.0.0
 
 UnicodeData.txt:
-       $(CURL) $(CURLFLAGS) -o $@ https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt
+       cp /usr/share/unicode/UnicodeData.txt $@
 
 EastAsianWidth.txt:
-       $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/EastAsianWidth.txt
+       cp /usr/share/unicode/extracted/DerivedEastAsianWidth.txt $@
 
 GraphemeBreakProperty.txt:
-       $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/auxiliary/GraphemeBreakProperty.txt
+       cp /usr/share/unicode/auxiliary/GraphemeBreakProperty.txt $@
 
 DerivedCoreProperties.txt:
-       $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/DerivedCoreProperties.txt
+       cp /usr/share/unicode/DerivedCoreProperties.txt $@
 
 CompositionExclusions.txt:
-       $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/CompositionExclusions.txt
+       cp /usr/share/unicode/CompositionExclusions.txt $@
 
 CaseFolding.txt:
-       $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/CaseFolding.txt
+       cp /usr/share/unicode/CaseFolding.txt $@
 
 NormalizationTest.txt:
-       $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/NormalizationTest.txt
+       bzip2 -d < /usr/share/unicode/NormalizationTest.txt.bz2 > $@
 
 GraphemeBreakTest.txt:
-       $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/auxiliary/GraphemeBreakTest.txt
+       cp /usr/share/unicode/auxiliary/GraphemeBreakTest.txt $@
 
 emoji-data.txt:
-       $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://unicode.org/Public/$(UNICODE_VERSION)/ucd/emoji/emoji-data.txt
+       cp /usr/share/unicode/emoji/emoji-data.txt $@
 
 Uppercase.txt: DerivedCoreProperties.txt
-       $(JULIA) -e 'print(match(r"# Derived Property: Uppercase.*?# Total code points:"s, read("DerivedCoreProperties.txt", String)).match)' > $@
+       grep -zoP '(?s)# Derived Property: Uppercase.*?# Total code points:' DerivedCoreProperties.txt > $@
 
 Lowercase.txt: DerivedCoreProperties.txt
-       $(JULIA) -e 'print(match(r"# Derived Property: Lowercase.*?# Total code points:"s, read("DerivedCoreProperties.txt", String)).match)' > $@
+       grep -zoP '(?s)# Derived Property: Lowercase.*?# Total code points:' DerivedCoreProperties.txt > $@
 
 clean:
        rm -f $(RAWDATA) NormalizationTest.txt GraphemeBreakTest.txt